<template>
	<view>
		<scan></scan>
		<scanner></scanner>
		<sm></sm>
		<honeywell></honeywell>
		<u-card padding="16">
			<view class="" slot="head">
				<view class="wrap">
					<u-row>
						<u-col span="12">
							<view class="weikaishi3 yizuofei">
								<span><u-icon name="home" size="30" labelSize="15px" labelColor="#e84d74" label="收货方"></u-icon>：{{storage_out_task.getUnit}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="12" text-align="left">
							<view class="weikaishi6">
								<span><u-icon name="map" size="26" labelSize="13px" labelColor="#000000" label="地址"></u-icon>：{{storage_out_task.getLocation}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="6" text-align="left">
							<view class="weikaishi4">
								<span><u-icon name="coupon" size="29" labelSize="14px" labelColor="#000000" label="备货区"></u-icon>：{{storage_out_task.areanumber}}</span>
							</view>
						</u-col>
						<u-col span="6" text-align="left">
							<view class="weikaishi4 yiwancheng">
								<span><u-icon name="car" size="29" labelSize="14px" labelColor="#00c300" label="配送车辆" color="#00c300"></u-icon>：{{storage_out_task.privatecarCarnumbers}}</span>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
			<view class="" slot="body">
				<view class="wrap">
					<u-row>
						<u-col span="12" text-align="left" v-if="sum != yijian">
							<view class="u-m-t-5 weikaishi3">
								<span><u-icon name="order" size="29" labelSize="14px" labelColor="#000000" label="订单单号" color="#000000"></u-icon>：{{storage_out_task.storageOutNumber}}</span>
							</view>
						</u-col>
						<u-col span="12" text-align="left" v-else>
							<view class="u-m-t-5 weikaishi3 yiwancheng">
								<span><u-icon name="order" size="29" labelSize="14px" labelColor="#00c300" label="订单单号" color="#00c300"></u-icon>：{{storage_out_task.storageOutNumber}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="12" text-align="left" v-if="sum != yijian">
							<view class="u-m-t-5 weikaishi3">
								<span><u-icon name="order" size="29" labelSize="14px" labelColor="#000000" label="快递单号" color="#000000"></u-icon>：{{this.kddh}}</span>
							</view>
						</u-col>
						<u-col span="12" text-align="left" v-else>
							<view class="u-m-t-5 weikaishi3 yiwancheng">
								<span><u-icon name="order" size="29" labelSize="14px" labelColor="#00c300" label="快递单号" color="#00c300"></u-icon>：{{this.kddh}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="6" text-align="left">
							<view class=" u-m-t-10 weikaishi3">
								<span><u-icon name="clock" size="29" labelSize="14px" labelColor="#000000" :label="sums" color="#000000"></u-icon></span>
							</view>
						</u-col>
						<u-col span="6" text-align="left" v-if="xiangdeng == '2'">
							<view class=" u-m-t-10 weikaishi3">
								<span><u-icon name="checkmark-circle" size="29" labelSize="14px" labelColor="#000000" :label="yijians" color="#000000"></u-icon></span>
							</view>
						</u-col>
						<u-col span="6" text-align="left" v-else>
							<view class=" u-m-t-10 weikaishi3">
								<span><u-icon name="checkmark-circle" size="29" labelSize="14px" labelColor="#00c300" :label="yijians" color="#00c300"></u-icon></span>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
		</u-card>
		<u-card padding="16" v-for="(item,index) in dataList" :key="index" >
			<view class="" slot="head">
				<view class="wrap">
					<u-row>
						<u-col span="4" v-if="item.storageNumber == item.realNum">
							<view class="weikaishi3 yiwancheng" >
								<span>{{item.storageGoodscode}}</span>
							</view>
						</u-col>
						<u-col span="4" v-else>
							<view class="weikaishi3" >
								<span>{{item.storageGoodscode}}</span>
							</view>
						</u-col>
						<u-col span="4">
							<view class="weikaishi4 lanse" @click="findOrderDetails(item)">
								<span><u-icon name="search" size="29" labelSize="14px" labelColor="#2b85e4" label="订单详情" color="#2b85e4"></u-icon></span>
							</view>
						</u-col>
						<u-col span="4">
							<view class="weikaishi4 lanse" @click="findGoodsfenbu(item)">
								<span><u-icon name="search" size="29" labelSize="14px" labelColor="#2b85e4" label="货物位置" color="#2b85e4"></u-icon></span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="11" v-if="item.storageNumber == item.realNum">
							<view class="weikaishi2 yiwancheng">
								<span>{{item.storageGoodsname}},{{item.goodsNo}}</span>
							</view>
						</u-col>
						<u-col span="11" v-else>
							<view class="weikaishi2">
								<span>{{item.storageGoodsname}},{{item.goodsNo}}</span>
							</view>
						</u-col>
						<u-col span="1" text-align="center" @click="scan(item.storageGoodscode)">
							<view class="u-m-t-5 weikaishi2">
								<u-icon name="scan" color="#2b85e4" size="45"></u-icon>
							</view>
						</u-col>
					</u-row>
					<u-row >
						<u-col span="6">
							<view class="weikaishi6">
								<span>包装：{{item.storagePacking}}</span>
							</view>
						</u-col>
						<u-col span="6">
							<view class="weikaishi6">
								<span>规格：{{item.goodsSpecs}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="4">
							<view class="weikaishi3">
								<span>库位：</span><span>{{item.storagePostionNumber}}</span>
							</view>
						</u-col>
						<u-col span="4">
							<view class="weikaishi3">
								<span>应拣：{{item.storageNumber}}</span>
							</view>
						</u-col>
						<u-col span="4" v-if="item.storageNumber == item.realNum">
							<view class="yiwancheng weikaishi3">
								<span>已拣：{{item.realNum}}</span>
							</view>
						</u-col>
						<u-col span="4" v-else>
							<view class="weikaishi3">
								<span>已拣：{{item.realNum}}</span>
							</view>
						</u-col>
						<u-col span="12"  v-if="item.xianggui">
							<view class="weikaishi3">
								<span><u-icon name="clock" size="29" labelSize="14px" labelColor="#000000" label="换算" color="#000000"></u-icon>：{{parseInt(item.storageNumber/item.xianggui)}}箱{{item.storageNumber-parseInt(item.storageNumber/item.xianggui)*item.xianggui}}盒</span>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
			<view class="" slot="body">
				<view class="wrap">
					<u-row >
						<u-col span="2" text-align="right">
							<view class="u-m-t-10 weikaishi">
								<span>库位</span>
							</view>
						</u-col>
						<u-col span="2" text-align="right">
							<view class="u-m-t-10 weikaishi">
								<span>托数</span>
							</view>
						</u-col>
						<u-col span="3" text-align="center">
							<view class="u-m-t-10 weikaishi">
								<span>应拣</span>
							</view>
						</u-col>
						<u-col span="2" text-align="center">
							<view class="u-m-t-10 weikaishi">
								<span>已拣</span>
							</view>
						</u-col>
						<u-col span="3" text-align="center">
							<view class="u-m-t-10 weikaishi">
								<span>批次</span>
							</view>
						</u-col>
					</u-row>
					<u-row v-for="(item1,index1) in item.list" :key="index1" @click="fenpei(item1,item)">
						<u-col span="3" text-align="center">
							<view class=" u-m-t-15 weikaishi2">
								<span>{{item1.storagePostionNumber}}</span>
							</view>
						</u-col>
						<u-col span="1" text-align="center">
							<view class=" u-m-t-15 weikaishi2">
								<span>{{item1.trayNum}}</span>
							</view>
						</u-col>
						<u-col span="3" text-align="center" v-if="item1.storageNumber != item1.realNum">
							<view class=" u-m-t-15 weikaishi2">
								<span>{{item1.storageNumber}}</span>
							</view>
						</u-col>
						<u-col span="3" text-align="center" v-else>
							<view class=" u-m-t-15 weikaishi2 yiwancheng">
								<span>{{item1.storageNumber}}</span>
							</view>
						</u-col>
						<u-col span="2" text-align="center" v-if="item1.storageNumber != item1.realNum">
							<view class=" u-m-t-15 weikaishi2">
								<span>{{item1.realNum}}</span>
							</view>
						</u-col>
						<u-col span="2" text-align="center" v-else>
							<view class=" u-m-t-15 weikaishi2 yiwancheng">
								<span>{{item1.realNum}}</span>
							</view>
						</u-col>
						<u-col span="3" text-align="center">
							<view class=" u-m-t-15 weikaishi huanhang">
								<span>{{item1.storageBatchnumber}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="6" text-align="right">
							<view class="u-m-t-10">
								<span><u-button type="default" size="default" @click="mingxi(item)">拣货明细</u-button></span>
							</view>
						</u-col>
						<u-col span="6" text-align="right" v-if="item.storageNumber != item.realNum">
							<view class="u-m-t-10">
								<span><u-button type="primary" size="default" @click="open(item)">拣货</u-button></span>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
		</u-card>
		<u-popup v-model="show" mode="center" closeable width="650rpx" height="600rpx" border-radius="10" @close="close()">
			<view class="u-text-center u-m-t-20 weikaishi2"><u-icon name="edit-pen" size="30" labelSize="15px" labelColor="#000000" label="拣货"></u-icon></view>
			<view class="wrap">
				<u-row>
					<u-col span="6">
						<view class="u-line-1 u-m-t-10">
							<span><u-input v-model="storagePostionNumber" border="true" placeholder="请输入更正库位"/></span>
						</view>
					</u-col>
					<u-col span="3" text-align="center">
						<view class="u-line-1 u-m-t-10 weikaishi">
							<span><u-button type="primary" size="default" @click="can()">扫码</u-button></span>
						</view>
					</u-col>
					<u-col span="3" text-align="center">
						<view class="u-line-1 u-m-t-10 weikaishi">
							<span><u-button type="default" size="default" @click="gengzheng()">更正</u-button></span>
						</view>
					</u-col>
				</u-row>
				<u-row>
					<u-col span="6">
						<view class="weikaishi3 u-line-1 u-m-t-10">
							<span v-html="'库位：'+outInfo.storagePostionNumber"></span>
						</view>
					</u-col>
					<u-col span="6" text-align="center">
						<view class="weikaishi3 u-line-1 u-m-t-10">
							<span v-html="'托盘：'+outInfo.trayNumber"></span>
						</view>
					</u-col>
				</u-row>
				<u-row>
					<u-col span="12">
						<view class="weikaishi3 u-line-1 u-m-t-10">
							<span v-html="'批次：'+outInfo.storageBatchnumber"></span>
						</view>
					</u-col>
				</u-row>
				<u-row>
					<u-col span="4" text-align="center">
						<view class="u-line-1 u-m-t-20 weikaishi3">
							<span>拣货数量：</span>
						</view>
					</u-col>
					<u-col span="8">
						<view class="u-line-1 u-m-t-10 weikaishi2">
							<span><u-input v-model="outInfo.storageNumber" type="digit" border="true" placeholder="请输入拣货数量.."/></span>
						</view>
					</u-col>
				</u-row>
				<u-row>
					<u-col span="12"  v-if="outInfo.xianggui">
						<view class="weikaishi3">
							<span><u-icon name="clock" size="29" labelSize="14px" labelColor="#000000" label="换算" color="#000000"></u-icon>：{{parseInt(outInfo.storageNumber/outInfo.xianggui)}}箱{{outInfo.storageNumber-parseInt(outInfo.storageNumber/outInfo.xianggui)*outInfo.xianggui}}盒</span>
						</view>
					</u-col>
				</u-row>
				<u-row>
					<u-col span="6">
						<view class="weikaishi3 u-m-t-10">
							<u-button type="primary" size="default" @click="candefine()">扫码拣货</u-button>
						</view>
					</u-col>
					<u-col span="6">
						<view class="weikaishi3 u-m-t-10">
							<u-button type="default" size="default" @click="define()">确定拣货</u-button>
						</view>
					</u-col>
				</u-row>
				<u-card padding="16" v-if="dataList2.length > 1">
					<view class="" slot="head">
						<view class="wrap">
							<u-row >
								<u-col span="2" text-align="center">
									<view class="u-line-1 u-m-t-10 weikaishi">
										<span>库位</span>
									</view>
								</u-col>
								<u-col span="3" text-align="center">
									<view class="u-line-1 u-m-t-10 weikaishi">
										<span>托盘</span>
									</view>
								</u-col>
								<u-col span="3" text-align="center">
									<view class="u-line-1 u-m-t-10 weikaishi">
										<span>批次</span>
									</view>
								</u-col>
								<u-col span="2" text-align="center">
									<view class="u-line-1 u-m-t-10 weikaishi">
										<span>应拣</span>
									</view>
								</u-col>
								<u-col span="2" text-align="center">
									<view class="u-line-1 u-m-t-10 weikaishi">
										<span>实拣</span>
									</view>
								</u-col>
							</u-row>
						</view>
					</view>
					<view class="" slot="body">
						<view class="wrap">
							<u-row v-for="(item1,index1) in dataList2" :key="index1">
								<u-col span="2" text-align="center">
									<view class="u-m-t-15 weikaishi4">
										<span>{{item1.storagePostionNumber}}</span>
									</view>
								</u-col>
								<u-col span="3" text-align="center">
									<view class=" u-m-t-10 weikaishi huanhang">
										<span>{{item1.trayNumber}}</span>
									</view>
								</u-col>
								<u-col span="3" text-align="center">
									<view class="u-m-t-15 weikaishi huanhang">
										<span>{{item1.storageBatchnumber}}</span>
									</view>
								</u-col>
								<u-col span="2" text-align="center" v-if="item1.storageOutStatus == '待拣货'">
									<view class=" u-m-t-15 weikaishi4 huanhang">
										<span>{{item1.storageNumber}}</span>
									</view>
								</u-col>
								<u-col span="2" text-align="center" v-else>
									<view class=" u-m-t-15 weikaishi4 yiwancheng huanhang">
										<span>{{item1.storageNumber}}</span>
									</view>
								</u-col>
								<u-col span="2" text-align="center" v-if="item1.storageOutStatus == '待拣货'">
									<view class=" u-m-t-15 weikaishi4 huanhang">
										<span>{{item1.realNum}}</span>
									</view>
								</u-col>
								<u-col span="2" text-align="center" v-else>
									<view class=" u-m-t-15 weikaishi4 yiwancheng huanhang">
										<span>{{item1.realNum}}</span>
									</view>
								</u-col>
							</u-row>
							<u-row>
								<u-col span="12" text-align="right">
									<view class="u-m-t-10">
										<span><u-button type="primary" size="default" @click="batchout()">批量拣货</u-button></span>
									</view>
								</u-col>
							</u-row>
						</view>
					</view>
				</u-card>
			</view>
		</u-popup>
		<u-popup v-model="popupShow2" mode="center" closeable width="550rpx" height="620rpx" border-radius="10">
			<view class="u-text-center u-m-t-15 weikaishi3"><u-icon name="search" size="30" labelSize="15px" labelColor="#000000" label="货物位置"></u-icon></view>
			<u-card padding="16">
				<view class="" slot="head">
					<view class="wrap">
						<u-row>
							<u-col span="12">
								<view class="weikaishi3 lanse">
									<span v-html="storageGoodsname+'，'+goodsNo"></span>
								</view>
							</u-col>
						</u-row>
					</view>
				</view>
				<view class="" slot="body">
					<view class="wrap">
						<u-row >
							<u-col span="3" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>库位</span>
								</view>
							</u-col>
							<u-col span="4" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>数量</span>
								</view>
							</u-col>
							<u-col span="5" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>批次</span>
								</view>
							</u-col>
						</u-row>
						<u-row v-for="(item1,index1) in kucunlist" :key="index1">
							<u-col span="3" text-align="center">
								<view class=" u-m-t-15 weikaishi3">
									<span>{{item1.positionNumber}}</span>
								</view>
							</u-col>
							<u-col span="4" text-align="center">
								<view class=" u-m-t-15 weikaishi3">
									<span>{{item1.num}}</span>
								</view>
							</u-col>
							<u-col span="5" text-align="center">
								<view class=" u-m-t-15 weikaishi4 huanhang">
									<span>{{item1.goodsbatchs}}</span>
								</view>
							</u-col>
						</u-row>
					</view>
				</view>
			</u-card>
		</u-popup>
		<u-popup v-model="popupShow3" mode="center" closeable width="550rpx" height="470rpx" border-radius="10">
			<view class="u-text-center u-m-t-20 weikaishi3"><u-icon name="order" size="30" labelSize="15px" labelColor="#000000" label="订单详情"></u-icon></view>
			<u-card padding="16">
				<view class="" slot="head">
					<view class="wrap">
						<u-row>
							<u-col span="12">
								<view class="weikaishi3 lanse">
									<span v-html="storageGoodsname+'，'+goodsNo"></span>
								</view>
							</u-col>
						</u-row>
					</view>
				</view>
				<view class="" slot="body">
					<view class="wrap">
						<u-row >
							<u-col span="6" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>数量</span>
								</view>
							</u-col>
							<u-col span="6" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>批次</span>
								</view>
							</u-col>
						</u-row>
						<u-row v-for="(item1,index1) in outorderlist" :key="index1">
							<u-col span="6" text-align="center">
								<view class=" u-m-t-15 weikaishi3">
									<span>{{item1.detailedNumber}}</span>
								</view>
							</u-col>
							<u-col span="6" text-align="center">
								<view class=" u-m-t-15 weikaishi3 huanhang">
									<span>{{item1.detailedBatchnumber}}</span>
								</view>
							</u-col>
						</u-row>
					</view>
				</view>
			</u-card>
		</u-popup>
		<u-popup v-model="popupShow4" mode="center" closeable width="680rpx" height="720rpx" border-radius="10" @close="close()">
			<view class="u-text-center u-m-t-20 weikaishi3"><u-icon name="order" size="30" labelSize="15px" labelColor="#000000" label="拣货明细"></u-icon></view>
			<u-card padding="16">
				<view class="" slot="head">
					<view class="wrap">
						<u-row>
							<u-col span="12">
								<view class="weikaishi3 lanse">
									<span v-html="mingxiitem.storageGoodsname+'，'+mingxiitem.goodsNo"></span>
								</view>
							</u-col>
						</u-row>
					</view>
				</view>
				<view class="" slot="body">
					<view class="wrap">
						<u-row >
							<u-col span="2" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>库位</span>
								</view>
							</u-col>
							<u-col span="2" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>托盘</span>
								</view>
							</u-col>
							<u-col span="3" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>批次</span>
								</view>
							</u-col>
							<u-col span="2" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>应拣</span>
								</view>
							</u-col>
							<u-col span="2" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
									<span>实拣</span>
								</view>
							</u-col>
							<u-col span="1" text-align="center">
								<view class="u-line-1 u-m-t-10 weikaishi">
								</view>
							</u-col>
						</u-row>
						<u-row v-for="(item1,index1) in dataList2" :key="index1">
							<u-col span="2" text-align="center">
								<view class="u-m-t-15 weikaishi4">
									<span>{{item1.storagePostionNumber}}</span>
								</view>
							</u-col>
							<u-col span="2" text-align="center">
								<view class=" u-m-t-10 weikaishi huanhang">
									<span>{{item1.trayNumber}}</span>
								</view>
							</u-col>
							<u-col span="3" text-align="center">
								<view class="u-m-t-15 weikaishi huanhang">
									<span>{{item1.storageBatchnumber}}</span>
								</view>
							</u-col>
							<u-col span="2" text-align="center" v-if="item1.storageOutStatus == '待拣货'">
								<view class=" u-m-t-15 weikaishi4 huanhang">
									<span>{{item1.storageNumber}}</span>
								</view>
							</u-col>
							<u-col span="2" text-align="center" v-else>
								<view class=" u-m-t-15 weikaishi4 yiwancheng huanhang">
									<span>{{item1.storageNumber}}</span>
								</view>
							</u-col>
							<u-col span="2" text-align="center" v-if="item1.storageOutStatus == '待拣货'">
								<view class=" u-m-t-15 weikaishi4 huanhang">
									<span>{{item1.realNum}}</span>
								</view>
							</u-col>
							<u-col span="2" text-align="center" v-else>
								<view class=" u-m-t-15 weikaishi4 yiwancheng huanhang">
									<span>{{item1.realNum}}</span>
								</view>
							</u-col>
							<u-col span="1" text-align="center" @click="revoke(item1.id)" v-if="item1.storageOutStatus == '已拣货'">
								<view class=" u-m-t-10">
									<u-icon name="reload" color="#e84d74" size="45"></u-icon>
								</view>
							</u-col>
						</u-row>
					</view>
				</view>
			</u-card>
		</u-popup>
		<u-popup v-model="popupShow5" mode="center" closeable width="600rpx" height="500rpx" border-radius="20">
			<view class="u-text-left u-m-t-20 weikaishi2" style="margin-left: 20rpx;margin-bottom: 30rpx;">选择批次</view>
			<view class="wrap">
				<view style="background-color: #eaeaea;" v-for="(item,index) in plist" :key="index">
					<u-row @click="xuznekehu(item.goodsbatchs)">
						<u-col span="12" text-align="center">
							<view class=" u-m-t-30 weikaishi3 lanse">
								<span>{{item.goodsbatchs}}</span>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
		</u-popup>
		<u-popup v-model="popupShow6" mode="center" closeable width="600rpx" height="500rpx" border-radius="20">
			<view class="u-text-left u-m-t-20 weikaishi2" style="margin-left: 20rpx;margin-bottom: 30rpx;">选择批次</view>
			<view class="wrap">
				<view style="background-color: #eaeaea;" v-for="(item,index) in plist2" :key="index">
					<u-row @click="xuznekehu2(item.goodsbatchs)">
						<u-col span="12" text-align="center">
							<view class=" u-m-t-30 weikaishi3 lanse">
								<span>{{item.goodsbatchs}}</span>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
		</u-popup>
		
		<u-popup v-model="popupShow7" mode="center" closeable width="700rpx" height="500rpx" border-radius="20">

			<view class="wrap">
				<view style="background-color: #eaeaea;" >
					<u-row >
						<u-col span="6" text-align="center">
							<view class=" u-m-t-30 weikaishi3 lanse">
								<span>
									快递单号
								</span>
							</view>
						</u-col>
						<u-col span="1" text-align="center">
							<view class=" u-m-t-30 weikaishi3 lanse">
								箱号
							</view>
						</u-col>
						<u-col span="5" text-align="center">
							<view class=" u-m-t-30 weikaishi3 lanse">
								数量
							</view>
						</u-col>
					</u-row>
				</view>
				<view style="background-color: #eaeaea;" v-for="(item,index) in dataList7" :key="index">
					
					<u-row >
						<u-col span="6" text-align="center">
							<view class=" u-m-t-30 weikaishi3 lanse">
								<span>
									{{item.expressDelivery}}
								</span>
							</view>
						</u-col>
						
						<u-col span="1" text-align="center">
							<view class=" u-m-t-30  yiwancheng">
							<!-- 	<u-tag
								  :text="`${item.boxNumber}`"
								  type="warning"
								  size="large">
								  </u-tag
								> -->
								<span style="font-size: 30px;">
									{{item.boxNumber}}
								</span>
							</view>
						</u-col>
						<u-col span="5" text-align="center">
							<view class=" u-m-t-30  yizuofei">
							
								<span style="font-size: 30px;">
									{{item.detailedNumber}}
								</span>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
		</u-popup>
		<view>
			<u-toast ref="uToast" />
		</view>
	</view>
</template>
<script>
	import config from '../../config.js'
	import scan from "@/components/uni-scan/scan.vue"
	import scanner from "@/components/uni-scan/scanner.vue"
	import sm from "@/components/uni-scan/sm.vue"
	import honeywell from "@/components/uni-scan/honeywell.vue"
	export default {
		components: {
			scanner,
			scan,
			sm,
			honeywell
		},
		data() {
			return {
				flex:'',
				storagePostionNumber:'',
				dataList: [],
				mingxiitem:{},
				dataList2: [],
				dataList7: [],
				show:false,
				storage_out_task:{},
				outInfo:{},
				popupShow2:false,
				popupShow3:false,
				popupShow4:false,
				popupShow5:false,
				popupShow6:false,
				popupShow7:false,
				kucunlist:[],
				outorderlist:[],
				storageGoodsname:'',
				goodsNo:'',
				selectStorageGoodsId:'',
				sum:'0',
				yijian:'0',
				xiangdeng:'',
				yijians:'',
				sums:'',
				canStoragePostionNumber:'',
				plist:[],
				plist2:[],
				kddh:[]
			}
		},
		onLoad() {
			//#ifdef H5 || APP-PLUS
			this.flex = 'u-flex'
			//#endif
			
			this.storage_out_task = uni.getStorageSync('storage_out_task')
			this.refresh()
		},
		onShow() {
			// this.refresh()
			
			uni.$off('scan');
			uni.$on('scan', (res) => {
				console.log('扫码结果1：', res.codeStr);
				this.goodsNumber = res.codeStr
			});
		
			uni.$off('scanner') // 每次进来先 移除全局自定义事件监听器
			uni.$on('scanner', (res) => {
				console.log('扫码结果2：', res.code);
				this.can()
			})
			uni.$off('sm') // 每次进来先 移除全局自定义事件监听器
			uni.$on('sm', (res) => {
				console.log('扫码结果3：', res.code);
				this.goodsNumber = res.code
			})
			uni.$off('honeywell') // 每次进来先 移除全局自定义事件监听器
			uni.$on('honeywell', (res) => {
				console.log('扫码结果4：', res.code);
				console.log(res)
				console.log(this.show)
				if(this.show){
					this.storagePostionNumber = res.code
					this.qiangjianhuo(this.storagePostionNumber.replace("\r",''))
				}else{
					this.goodsNumber = res.code
					console.log(this.goodsNumber)
					
					// 69码正确跳转拣货
					this.tojianhuo(this.goodsNumber)
				}
				
			})
				
		},
		onPullDownRefresh() {
			this.refresh()
			uni.stopPullDownRefresh()
		},
		methods: {
			scan(goodsNumber){
				let that = this
				uni.scanCode({
					success: function (res) {
						console.log('条码类型：' + res.scanType);
						console.log('条码内容：' + res.result);
						console.log(goodsNumber)
						if(res.result == goodsNumber){
							uni.showToast({
								title: '比对一致',
								duration: 2000
							});
							that.audio_success()
						} else {
							uni.showToast({
								title: '比对不一致！',
								duration: 2000,
								icon:'none',
							});
							that.audio_error()
						}
					}
				});
			},
			audio_success(){
				//验证商品编号一致  播报语音
				const innerAudioContext = uni.createInnerAudioContext();
				innerAudioContext.autoplay = true;
				innerAudioContext.src = config.root +'/system/audio_success';
				innerAudioContext.onPlay(() => {
				  console.log('开始播放');
				});
				innerAudioContext.onError((res) => {
				  console.log(res.errMsg);
				  console.log(res.errCode);
				});
			},
			audio_error(){
				//验证商品编号不一致  播报语音
				const innerAudioContext = uni.createInnerAudioContext();
				innerAudioContext.autoplay = true;
				innerAudioContext.src = config.root +'/system/audio_error';
				innerAudioContext.onPlay(() => {
				  console.log('开始播放');
				});
				innerAudioContext.onError((res) => {
				  console.log(res.errMsg);
				  console.log(res.errCode);
				});
			},
			xuznekehu(goodsbatchs){
				uni.showLoading({
					title: '加载中...'
				})
				this.$http.post('/rest/storageOut/zhidingpicking',{
				},{
					params: {
						id: this.outInfo.id,
						num: this.outInfo.storageNumber,
						canStoragePostionNumber:this.canStoragePostionNumber,
						goodsbatchs:goodsbatchs
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					uni.hideLoading()
					this.popupShow5 = false
					if(res.data.success){
						if(res.data.data.length == 0){
							this.audio_success()
							this.show = false
							this.close()
						} else {
							uni.showToast({
								title: '拣货成功',
								duration: 2000
							});
							this.audio_success()
							this.findmingxi()
							this.outInfo = res.data.data[0]
						}
					} else {
						this.audio_error()
						this.findmingxi()
						uni.showToast({
							title: res.data.message,
							duration: 2000,
							icon:'none',
						});
					}
				})
			},
			//去拣货
			tojianhuo(goodNo){
				uni.showLoading({
					title: '加载中...'
				})
				console.log("去拣货")
				console.log(this.storage_out_task.storageOutNumber[0])
				console.log(this.canStoragePostionNumber)
				this.$http.post('/rest/storageOut/tojianhuo',{
				},{
					params: {
						goodNo: goodNo.replace("\r",''),
						storageOutNumber:this.storage_out_task.storageOutNumber[0],
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					console.log(11111)
					console.log(res)
					if(res.data.code == 500){
						this.audio_error()
						uni.showToast({
							title: '本单下无此商品，请检查单号及商品信息！',
							duration: 2000
						});
					}else{
						uni.showToast({
							title: '商品匹配成功',
							duration: 2000
						});
						this.audio_success()
						
						let item = {
							storageGoodsId:res.data.data[0].storageGoodsId
						}
						this.open(item)
						
						
					}
					// uni.hideLoading()
					// this.popupShow5 = false
					// if(res.data.success){
					// 	if(res.data.data.length == 0){
					// 		this.audio_success()
					// 		this.show = false
					// 		this.close()
					// 	} else {
					// 		uni.showToast({
					// 			title: '拣货成功',
					// 			duration: 2000
					// 		});
					// 		this.audio_success()
					// 		this.findmingxi()
					// 		this.outInfo = res.data.data[0]
					// 	}
					// } else {
					// 	this.audio_error()
					// 	this.findmingxi()
					// 	uni.showToast({
					// 		title: res.data.message,
					// 		duration: 2000,
					// 		icon:'none',
					// 	});
					// }
				})
			},
			qiangjianhuo(canStoragePostionNumber){
				
				
					let that = this
							if(typeof that.outInfo.storageNumber == 'undefined' || that.outInfo.storageNumber == null || that.outInfo.storageNumber == ""){
								uni.showToast({
									title: "请输入出库数量",
									icon: 'none'
								})
								return
							}
							if(typeof canStoragePostionNumber == 'undefined' || canStoragePostionNumber == null || canStoragePostionNumber == ""){
								uni.showToast({
									title: "未获取到扫码信息",
									icon: 'none'
								})
								return
							}
							that.canStoragePostionNumber = canStoragePostionNumber
							if(that.outInfo.storagePostionNumber != that.canStoragePostionNumber){
								uni.showModal({
									content: '扫描库位与推荐库位不一致，确定继续吗？',
									success: (res) => {
										if (res.confirm) {
											uni.showLoading({
												title: '加载中...'
											})
											uni.request({
												method:"POST",
												header:{
													'Authorization' :uni.getStorageSync('token'),
												},
												url: config.root +'/rest/storageOut/confirmCan',
												data:{
													id: that.outInfo.id,
													num: that.outInfo.storageNumber,
													canStoragePostionNumber:canStoragePostionNumber
												},
												success: (res) => {
													// uni.hideLoading()
													// this.popupShow7 = true
													
													if(res.data.success){
														if(res.data.code == 405){
															that.plist = res.data.data
															that.popupShow5 = true
														} else if(res.data.data.length == 0){
															that.audio_success()
															that.show = false
															that.close()
															this.allocateGoods()
														} else {
															console.log(999999999)
															uni.showToast({
																title: '拣货成功',
																duration: 2000
															});
															that.audio_success()
															that.findmingxi()
															that.outInfo = res.data.data[0]
															this.allocateGoods()
														}
													} else {
														that.audio_error()
														that.findmingxi()
														uni.showToast({
															title: res.data.message,
															duration: 2000,
															icon:'none',
														});
													}
												}
											})
										} else if (res.cancel) {
											return
										}
									}
								})
							} else {
								uni.showLoading({
									title: '加载中...'
								})
								uni.request({
									method:"POST",
									header:{
										'Authorization' :uni.getStorageSync('token'),
									},
									url: config.root +'/rest/storageOut/confirmCan',
									data:{
										id: that.outInfo.id,
										num: that.outInfo.storageNumber,
										canStoragePostionNumber:canStoragePostionNumber
									},
									success: (res) => {
										// uni.hideLoading()
										console.log(111111111111111)
										console.log(res)
										if(res.data.success){
											console.log(2222222222)
											if(res.data.code == 405){
												that.plist = res.data.data
												that.popupShow5 = true
											} else if(res.data.data.length == 0){
												that.audio_success()
												that.show = false
												that.close()
												this.allocateGoods()
											} else {
												console.log(33333333333)
												uni.showToast({
													title: '拣货成功',
													duration: 2000
												});
												console.log(4444444444)
												that.audio_success()
												console.log(55555555555)
												that.findmingxi()
												console.log(66666666666)
												that.outInfo = res.data.data[0]
												this.allocateGoods()
											}
										} else {
											that.audio_error()
											that.findmingxi()
											uni.showToast({
												title: res.data.message,
												duration: 2000,
												icon:'none',
											});
										}
									}
								})
							}
			},
			
			
			candefine(){
				let that = this
				// 只允许通过相机扫码
				uni.scanCode({
					success: function (res) {
						let canStoragePostionNumber = res.result
						console.log('条码类型：' + res.scanType);
						console.log('条码内容：' + res.result);
						if(typeof that.outInfo.storageNumber == 'undefined' || that.outInfo.storageNumber == null || that.outInfo.storageNumber == ""){
							uni.showToast({
								title: "请输入出库数量",
								icon: 'none'
							})
							return
						}
						if(typeof canStoragePostionNumber == 'undefined' || canStoragePostionNumber == null || canStoragePostionNumber == ""){
							uni.showToast({
								title: "未获取到扫码信息",
								icon: 'none'
							})
							return
						}
						that.canStoragePostionNumber = canStoragePostionNumber
						if(that.outInfo.storagePostionNumber != res.result){
							uni.showModal({
								content: '扫描库位与推荐库位不一致，确定继续吗？',
								success: (res) => {
									if (res.confirm) {
										uni.showLoading({
											title: '加载中...'
										})
										uni.request({
											method:"POST",
											header:{
												'Authorization' :uni.getStorageSync('token'),
											},
											url: config.root +'/rest/storageOut/confirmCan',
											data:{
												id: that.outInfo.id,
												num: that.outInfo.storageNumber,
												canStoragePostionNumber:canStoragePostionNumber
											},
											success: (res) => {
												uni.hideLoading()
												if(res.data.success){
													if(res.data.code == 405){
														that.plist = res.data.data
														that.popupShow5 = true
													} else if(res.data.data.length == 0){
														that.audio_success()
														that.show = false
														that.close()
													} else {
														uni.showToast({
															title: '拣货成功',
															duration: 2000
														});
														that.audio_success()
														that.findmingxi()
														that.outInfo = res.data.data[0]
														this.popupShow7 = true
													}
												} else {
													that.audio_error()
													that.findmingxi()
													uni.showToast({
														title: res.data.message,
														duration: 2000,
														icon:'none',
													});
												}
											}
										})
									} else if (res.cancel) {
										return
									}
								}
							})
						} else {
							uni.showLoading({
								title: '加载中...'
							})
							uni.request({
								method:"POST",
								header:{
									'Authorization' :uni.getStorageSync('token'),
								},
								url: config.root +'/rest/storageOut/confirmCan',
								data:{
									id: that.outInfo.id,
									num: that.outInfo.storageNumber,
									canStoragePostionNumber:canStoragePostionNumber
								},
								success: (res) => {
									uni.hideLoading()
									if(res.data.success){
										if(res.data.code == 405){
											that.plist = res.data.data
											that.popupShow5 = true
										} else if(res.data.data.length == 0){
											that.audio_success()
											that.show = false
											that.close()
										} else {
											uni.showToast({
												title: '拣货成功',
												duration: 2000
											});
											that.audio_success()
											that.findmingxi()
											that.outInfo = res.data.data[0]
											this.popupShow7 = true
										}
									} else {
										that.audio_error()
										that.findmingxi()
										uni.showToast({
											title: res.data.message,
											duration: 2000,
											icon:'none',
										});
									}
								}
							})
						}
					}
				});
			},
			gengzheng(){
				this.storagePostionNumber = this.storagePostionNumber.toLocaleUpperCase()
				if(typeof this.storagePostionNumber == 'undefined' || this.storagePostionNumber == null || this.storagePostionNumber == ""){
					uni.showToast({
						title: "请输入更正库位",
						icon: 'none'
					})
					return
				}
				uni.showLoading({
					title: '加载中...'
				})
				this.$http.post('/rest/storageOut/updatePostionNumber',{
				},{
					params: {
						storageOutNumber: this.outInfo.storageOutNumber,
						storageGoodsId:this.outInfo.storageGoodsId,
						updateStoragePostionNumber: this.storagePostionNumber
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					uni.hideLoading()
					if(res.data.success){
						if(res.data.code == 405){
							this.plist2 = res.data.data
							this.popupShow6 = true
						} else if (res.data.data.length == 0){
							this.show = false
							this.close()
						} else {
							this.$refs.uToast.show({
								title: '修改成功',
								type: 'success'
							})
							this.findmingxi()
							this.outInfo = res.data.data[0]
						}
					} else {
						this.findmingxi()
						this.$refs.uToast.show({
							title: res.data.message,
							type: 'error'
						})
					}
				})
			},
			xuznekehu2(goodsbatchs){
				this.popupShow6 = false
				uni.showLoading({
					title: '加载中...'
				})
				this.$http.post('/rest/storageOut/updatePostionNumberXz',{
				},{
					params: {
						storageOutNumber: this.outInfo.storageOutNumber,
						storageGoodsId:this.outInfo.storageGoodsId,
						updateStoragePostionNumber: this.storagePostionNumber,
						storageBatchnumber:goodsbatchs
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					uni.hideLoading()
					if(res.data.success){
						if (res.data.data.length == 0){
							this.show = false
							this.close()
						} else {
							this.$refs.uToast.show({
								title: '修改成功',
								type: 'success'
							})
							this.findmingxi()
							this.outInfo = res.data.data[0]
						}
					} else {
						this.findmingxi()
						this.$refs.uToast.show({
							title: res.data.message,
							type: 'error'
						})
					}
				})
			},
			define(){
				if(typeof this.outInfo.storageNumber == 'undefined' || this.outInfo.storageNumber == null || this.outInfo.storageNumber == ""){
					uni.showToast({
						title: "请输入出库数量",
						icon: 'none'
					})
					return
				}
				uni.showLoading({
					title: '加载中...'
				})
				this.$http.post('/rest/storageOut/confirmpicking',{
				},{
					params: {
						id: this.outInfo.id,
						num: this.outInfo.storageNumber
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					uni.hideLoading()
					if(res.data.success){
						if(res.data.code == 405){
							this.findmingxi()
							uni.showModal({
								content: res.data.message,
								showCancel:false,
								success: (res2) => {
									if (res2.confirm) {
										this.outInfo = res.data.data[0]
									} 
								}
							})
						} else if(res.data.data.length == 0){
							this.audio_success()
							this.show = false
							this.close()
							//分配商品到快递单
							this.allocateGoods()
							// this.fenpei1()
						} else {
							this.$refs.uToast.show({
								title: '拣货成功',
								type: 'success'
							})
							this.audio_success()
							this.findmingxi()
							this.outInfo = res.data.data[0]
							//分配商品到快递单
							this.allocateGoods()
							// this.fenpei1()
						}
					} else {
						this.audio_error()
						this.findmingxi()
						this.$refs.uToast.show({
							title: res.data.message,
							type: 'error'
						})
					}
				})
			},
			batchout(){
				uni.showModal({
					content: '确定批量拣货吗？',
					success: (res) => {
						if (res.confirm) {
							uni.showLoading({
								title: '加载中...'
							})
							this.$http.post('/rest/storageOut/batchout?storageOutNumber='+this.storage_out_task.storageOutNumber,{
							},{
								params:{
									storageGoodsId:this.mingxiitem.storageGoodsId
								},
								header: {
									'Authorization' :uni.getStorageSync('token'),
								}
							}).then(res => {
								uni.hideLoading()
								if(res.data.code == 200) {
									this.$refs.uToast.show({
										title: '拣货成功',
										type: 'success'
									})
									this.audio_success()
									this.show = false
									this.close()
								} else {
									this.$refs.uToast.show({
										title: res.data.message,
										type: 'error'
									})
									this.audio_error()
									setTimeout(() => {
										this.findmingxi()
									}, 500)
								}
							})
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				})
			},
			can(){
				let that = this
				// 只允许通过相机扫码
				uni.scanCode({
					success: function (res) {
						console.log('条码类型：' + res.scanType);
						console.log('条码内容：' + res.result);
						that.storagePostionNumber = res.result
					}
				});
			},
			mingxi(item){
				this.mingxiitem = item
				this.$http.post('/rest/storageOut/findjianhuomingxi?storageOutNumber='+this.storage_out_task.storageOutNumber,{
				},{
					params: {
						storageGoodsId:item.storageGoodsId
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					this.dataList2 = res.data.data
					this.popupShow4 = true
				})
			},
			// 明细分配
			fenpei(item,it){
				console.log(item)
				console.log(it)
				console.log(this.storage_out_task)
				console.log(this.storage_out_task.storageOutNumber)
				this.mingxiitem = item
				this.$http.post('/rest/storageOut/allocateDetail?storageOutNumber='+this.storage_out_task.storageOutNumber,{
				},{
					params: {
						storageGoodsId:it.storageGoodsId
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					console.log(res)
					this.dataList7 = res.data.data
					this.popupShow7 = true
				})
			},
			fenpei1(){
				
				if(this.kddh.length>1){
					console.log(this.storage_out_task)
					console.log(this.storage_out_task.storageOutNumber)
					
					this.$http.post('/rest/storageOut/allocateDetail?storageOutNumber='+this.storage_out_task.storageOutNumber,{
					},{
						params: {
							storageGoodsId:this.selectStorageGoodsId
						},
						header: {
							'Authorization' :uni.getStorageSync('token'),
						}
					}).then(res => {
						console.log(res)
						this.dataList7 = res.data.data
						this.popupShow7 = true
					})
				}
				
			},
			//分配商品到快递单
			allocateGoods(){
				console.log(this.outInfo)
				this.$http.post('/rest/storageOut/allocateGoods',{
				},{
					params: {
						id: this.outInfo.id,
						num: this.outInfo.storageNumber,
						storageOutNumber:this.outInfo.storageOutNumber
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					uni.hideLoading()
					if(res.data.success){
						if(res.data.code == 405){
							this.findmingxi()
							uni.showModal({
								content: res.data.message,
								showCancel:false,
								success: (res2) => {
									if (res2.confirm) {
										this.outInfo = res.data.data[0]
									} 
								}
							})
						} else if(res.data.data.length == 0){
							this.audio_success()
							this.show = false
							this.close()
							this.fenpei1()
						} else {
							this.$refs.uToast.show({
								title: '拣货成功',
								type: 'success'
							})
							this.audio_success()
							this.findmingxi()
							this.outInfo = res.data.data[0]	
							this.fenpei1()
						}
					} else {
						this.audio_error()
						this.findmingxi()
						this.$refs.uToast.show({
							title: res.data.message,
							type: 'error'
						})
					}
				})
			},
			findmingxi(){
				this.$http.post('/rest/storageOut/findjianhuomingxi?storageOutNumber='+this.storage_out_task.storageOutNumber,{
				},{
					params: {
						storageGoodsId:this.mingxiitem.storageGoodsId
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					this.dataList2 = res.data.data
				})
			},
			revoke(id){
				uni.showModal({
					content: '确定撤销吗？',
					success: (res) => {
						if (res.confirm) {
							this.$http.post('/rest/storageOut/revoke',{
							},{
								params:{
									id:id,
								},
								header: {
									'Authorization' :uni.getStorageSync('token'),
								}
							}).then(res => {
								if(res.data.code == 200) {
									this.$refs.uToast.show({
										title: '撤销成功',
										type: 'success'
									})
									setTimeout(() => {
										this.findmingxi()
									}, 500)
								} else {
									this.$refs.uToast.show({
										title: res.data.message,
										type: 'error'
									})
									setTimeout(() => {
										this.findmingxi()
									}, 500)
								}
							})
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				})
			},
			findOrderDetails(item){
				this.storageGoodsname = item.storageGoodsname
				this.goodsNo = item.goodsNo
				this.$http.post('/rest/storageOut/findOrderDetails?storageOutNumber='+this.storage_out_task.storageOutNumber,{
				},{
					params: {
						goodsId:item.storageGoodsId
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					this.outorderlist = res.data.data
					this.popupShow3 = true
				})
				
			},
			findGoodsfenbu(item){
				this.storageGoodsname = item.storageGoodsname
				this.goodsNo = item.goodsNo
				this.$http.post('/rest/moveDisk/kucunlist',{
				},{
					params: {
						goodsId:item.storageGoodsId
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					this.kucunlist = res.data.data
					this.popupShow2 = true
				})
			},
			close(){
				this.$http.post('/rest/storageOut/unlockTheItem',{
				},{
					params: {
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
				})
				this.refresh()
			},
			open(item){
				this.selectStorageGoodsId = item.storageGoodsId
				this.storagePostionNumber = ''
				this.$http.post('/rest/storageOut/trayInformation?storageOutNumber='+this.storage_out_task.storageOutNumber,{
				},{
					params: {
						storageGoodsId:item.storageGoodsId
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					if(res.data.success){
						this.outInfo = res.data.data[0]
						
						this.mingxiitem = item
						this.findmingxi()
						this.show = true
					} else {
						this.$refs.uToast.show({
							title: res.data.message,
							type: 'error'
						})
					}
				})
			},
			//根据订单号查询快递单号
			getkddByOrder(){
				
				this.$http.post('/rest/storageOut/getkddByOrder?storageOutNumber='+this.storage_out_task.storageOutNumber,{
				},{
					params: {
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					if(res.data.success){
						console.log("根据订单号查询快递单号")
						console.log(res)
						this.kddh = res.data.data
					} else {
						
					}
				})
			},
			refresh(){
			
				uni.showLoading({
					title: '加载中...'
				})
				this.getkddByOrder()
				this.$http.post('/rest/storageOut/apporderworklist2?storageOutNumbers='+this.storage_out_task.storageOutNumber,{
				},{
					params: {
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					this.dataList = res.data.data
					console.log(this.dataList)
					this.$http.post('/rest/storageOut/sumCountAndYijianshu?storageOutNumbers='+this.storage_out_task.storageOutNumber,{
					},{
						params: {
						},
						header: {
							'Authorization' :uni.getStorageSync('token'),
						}
					}).then(res => {
						this.sum = res.data.data.storageNumber
						this.yijian = res.data.data.realNum
						this.sums = '应拣数：' + res.data.data.storageNumber
						this.yijians = '已拣数：' + res.data.data.realNum
						if(res.data.data.storageNumber == res.data.data.realNum){
							this.xiangdeng = '1'
						} else {
							this.xiangdeng = '2'
						}
						uni.hideLoading()
					})
					uni.hideLoading()
				})
			},
		},
	}
</script>
<style lang="scss">
	.weikaishi2{
		font-size: 36rpx;
	}
	.weikaishi3{
		font-size: 32rpx;
	}
	.huanhang{
		word-break:break-all;
	}
</style>